package com.k.util.resourcebundle.properties;

import java.util.Locale;
import java.util.ResourceBundle;

/**
 * @author k
 */
public class TestReadProperties {
    public static void main(String[] args) {
        ResourceBundle bundle1 = ResourceBundle.getBundle("static/i18n/prop/strings", new Locale("zh", "CN"));
        String string1 = bundle1.getString("common.yes");
        System.out.println("Key1: " + string1);
        
        ResourceBundle bundle2 = ResourceBundle.getBundle("static/i18n/prop/strings", new Locale("en", "US"));
        String string2 = bundle2.getString("common.yes");
        System.out.println("Key2: " + string2);
    }
}
